package com.teamone.etl.whitelist.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import org.springframework.data.annotation.Transient;

import java.io.Serializable;
import java.util.Date;

/**
 * IP白名单(WhiteList)表实体类
 *
 * @author makejava
 * @since 2021-01-20 11:07:18
 */
@SuppressWarnings("serial")
public class WhiteList extends Model<WhiteList> {
    /**
     * 序号
     */
    private Integer id;
    /**
     * 关联公司
     */
    private Integer enterpriseId;
    /**
     * IP地址
     */
    private String ipAddress;
    /**
     * 创建人
     */
    private String creator;
    /**
     * 状态   1：启用   2：禁用
     */
    private Integer status;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 公司名称
     */
    @Transient
    private String companyName;
    /**
     * 多个IP地址
     */
    @Transient
    private String ipAddressMulti;

    public String getIpAddressMulti() {
        return ipAddressMulti;
    }

    public void setIpAddressMulti(String ipAddressMulti) {
        this.ipAddressMulti = ipAddressMulti;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(Integer enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}